package com.sms.db;

public class DaoException extends Exception{

	public String errorCode;
	public String errorMsg;
	
	public DaoException(){
		super();
	}
	
	public DaoException(String errorCode, String errorMsg) {
		super(errorMsg);
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}
	
	public DaoException(String errorCode){
		super(errorCode);
		
		this.errorCode = errorCode;
	}
	
	public DaoException(String errorMsg, Throwable e){
		super(errorMsg,e);
		this.errorMsg = errorMsg;
	}
	
	public DaoException(String errorCode, String errorMsg, Throwable e){
		super(errorMsg,e);
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	
}
